package com.woniu.healthy.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 运动表
 * </p>
 *
 * @author lwh
 * @since 2022-07-22
 */
public class Sport implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    /**
     * 创建时间
     */
    private LocalDateTime createdTime;

    /**
     * 用户ID
     */
    private Integer userId;

    /**
     * 运动类型
     */
    private String type;

    /**
     * 数量;跑步单位：米；其他：个
     */
    private Integer sportNumber;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    /**
     * 逻辑删除标识;默认1；删除0
     */
    private String deleteFlag;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public LocalDateTime getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(LocalDateTime createdTime) {
        this.createdTime = createdTime;
    }
    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
    public Integer getSportNumber() {
        return sportNumber;
    }

    public void setSportNumber(Integer sportNumber) {
        this.sportNumber = sportNumber;
    }
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
    public String getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(String deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    @Override
    public String toString() {
        return "Sport{" +
            "id=" + id +
            ", createdTime=" + createdTime +
            ", userId=" + userId +
            ", type=" + type +
            ", sportNumber=" + sportNumber +
            ", updateTime=" + updateTime +
            ", deleteFlag=" + deleteFlag +
        "}";
    }
}
